package com.tiny.mall.gateway;

import com.tiny.mall.common.utils.PageUtils;
import com.tiny.mall.common.utils.R;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableDiscoveryClient
@RestController
public class TinyMallGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(TinyMallGatewayApplication.class, args);
    }

    @RequestMapping("/test")
    public R list(@RequestParam Map<String, Object> params){
        return R.ok().put("test", "1231");
    }

}
